﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SGArchiveSystem7xDB
{
    /// <summary>
    /// 数据库返回结果
    /// </summary>
    public class DBCommons
    {
    }
    /// <summary>
    /// 运营转态
    /// </summary>
    public enum _OperationStatus
    {
        _iStatus_我方运营 = 0,
        _iStatus_乙方运营 = 1,
        _iStatus_双方方运营 = 2,
    }

    public enum _LoginType
    {
        /// <summary>
        /// 普通登录
        /// </summary>
        Normal = 0,
        /// <summary>
        /// AD 方式登录
        /// </summary>
        AD = 1
    }

    /// <summary>
    /// 数据库操作返回值
    /// </summary>
    public enum _ReturnValue
    {
        /// <summary>
        /// 成功
        /// </summary>
        OK = 1,
        /// <summary>
        /// 失败
        /// </summary>
        Err = 2,
        /// <summary>
        /// 已存在
        /// </summary>
        Already = 0
    }

    /// <summary>
    /// 档案状态
    /// </summary>
    public enum _ArchiveStatus
    {
        _iStatus_授权 = 1,
        _iStatus_非授权 = 0,
        _iStatus_非授权已处理 = 2
        //_iStatus_未发布 = 0,
        //_iStatus_已发布 = 1,
        //_iStatus_已销毁 = 2
    }

    /// <summary>
    /// 库房状态
    /// </summary>
    public enum _ArchiveKFStatus
    {
        _iStatus_在库 = 1,
        _iStatus_被申请 = 2,
        _iStatus_借出 = 3,
        _iStatus_已销毁=4
    }

    /// <summary>
    /// 借阅类型
    /// </summary>
    public enum _BrrType
    {
        _iType_电子借阅 = 1,
        _iType_纸质借阅 = 2
    }

    /// <summary>
    /// 借阅状态
    /// </summary>
    public enum _BrrStatus
    {
        _iStatus_申请 = 0,
        _iStatus_借出 = 1,
        _iStatus_结束 = 2
    }

    /// <summary>
    /// 借阅审批状态
    /// </summary>
    public enum _BrrSPStatus
    {
        _iStatus_未审批 = 0,
        _iStatus_已审批 = 1,
        _iStatus_本部门审批 = 2,
        _iStatus_档案归属部门审批 = 3
    }

    /// <summary>
    /// 审批结果
    /// </summary>
    public enum _BrrSPValue
    {
        _iValue_未审批 = 0,
        _iValue_审批通过 = 1,
        _iValue_审批拒绝 = 2,
    }

    /// <summary>
    /// 是否逾期，如果逾期的话，则数据库中的字段记录逾期天数
    /// </summary>
    public enum _BrrSFYQP
    {
        _iValue_未借出 = -1,
        /// <summary>
        /// 如果逾期的话，则数据库中的字段记录逾期天数
        /// </summary>
        _iValue_正常 = 0,
    }

    /// <summary>
    /// 文件权限
    /// </summary>
    public enum _WjQx
    {
        /// <summary>
        /// 跟着部门权限走
        /// </summary>
        _WjQx_开放 = 0,
        /// <summary>
        /// 只有本人可以看
        /// </summary>
        _WjQx_本人与管理部门 = 1,
        /// <summary>
        /// 只有本部门可以看 
        /// </summary>
        _WjQx_本部门与管理部门 = 2,
    }

    public enum _BjQx
    {
        /// <summary>
        /// 跟着部门权限走
        /// </summary>
        _BjQx_开放 = 0,
        /// <summary>
        /// 只有本人有权修改
        /// </summary>
        _BjQx_本人 = 1,
        /// <summary>
        /// 本人和管理员都可以修改
        /// </summary>
        _BjQx_本人与管理员 = 2
         
    }

    /// <summary>
    /// 版本语言
    /// </summary>
    public enum _VersionLanguage
    {
        _Chs = 0,
        _Eng = 1
    }
}
